package com.snake.excel2java.excel.type;

public enum ShoprankType {

	START(3),
	legend(4),			// 传说
	epic(3),			// 史诗
	senior(2),			// 高级
	normal(1),			// 普通
	END(2);

	private int value;
	private ShoprankType(int value) { 
		this.value = value;
	}

	public int getValue() {
		return value;
	}

	public static ShoprankType get(int value) {

		switch (value) {
		case 4:
			return legend;
		case 3:
			return epic;
		case 2:
			return senior;
		case 1:
			return normal;
		}

		return END;
	}
}